package com.example.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("signin")
public class SignIn {
   @TableId(type = IdType.AUTO)
   private Long id;
   private long uid;
   @TableField("date_time")
   private String dateTime;
   @Max(value = 50,message = "积分错误")
   private Integer integral;
   @TableField(exist = false)
   private long seconds;
}
